import Layout from '@/module-dashboard/pages/layout'
const _import = require('@/router/import_' + process.env.NODE_ENV)

export default [
  {
    path: '/mainbody',
    component: Layout,
    redirect: 'noredirect',
    name: '主体管理',
    meta: {
      title: '主体管理',
      icon: 'mainbody'
    },
    children: [
      // {
      //   path: 'user-list',
      //   component: _import('theme/pages/user-list'),
      //   name: '车主主体',
      //   meta: {
      //     title: '车主主体'
      //   }
      // },
      {
        path: 'store-list2',
        component: _import('theme/pages/serve-list'),
        name: '服务商主体',
        meta: {
          title: '服务商主体'
        }
      },
      {
        path: 'serverAdd',
        component: _import('theme/components/server-add'),
        name: 'theme-details',
        hidden: true
      },
      {
        path: 'store-list1',
        component: _import('theme/pages/parts-list'),
        name: '配件商主体',
        meta: {
          title: '配件商主体'
        }
      },
      {
        path: 'partsAdd',
        component: _import('theme/components/parts-add'),
        name: 'parts-details',
        hidden: true
      },
      {
        path: 'store-list',
        component: _import('theme/pages/examine-list'),
        name: '主体审核',
        meta: {
          title: '主体审核'
        }
      },
      {
        path: 'storeAdd',
        component: _import('theme/components/store-add'),
        name: '审核详情',
        hidden: true
      },
      {
        path: 'store-user-list',
        component: _import('theme/pages/store-list'),
        name: '主体用户',
        meta: {
          title: '主体用户'
        }
      },
      {
        path: 'storeUserList',
        component: _import('theme/pages/store-user-list'),
        name: '用户列表',
        hidden: true,
        meta: {
          title: '主体用户'
        }
      }
    ]
  }
]
